package com.zmxstudy.rbac.entity;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

public class RoleAuths {
    private int roleId;
    private int authId;

    public int getRoleId() {
        return roleId;
    }

    public void setRoleId(int roleId) {
        this.roleId = roleId;
    }

    @JsonCreator
    public RoleAuths(@JsonProperty("roleId")int roleId,@JsonProperty("authId") int authId) {
        this.roleId = roleId;
        this.authId = authId;
    }

    public int getAuthId() {
        return authId;
    }

    public void setAuthId(int authId) {
        this.authId = authId;
    }

    @Override
    public String toString() {
        return "RoleAuths{" +
                "roleId=" + roleId +
                ", authId=" + authId +
                '}';
    }
}
